<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    // localStorage.setItem('sitename', '菜鸟教程')
    // localStorage.setItem('sitename1', 'asdasd')
    // localStorage.setItem('sitename2', '菜鸟asdsad教程')
    // localStorage.setItem('sitename3', '菜鸟asdasd教程')
    // console.log(localStorage.getItem('sitename3'))
    // localStorage.removeItem('sitename2')
    // localStorage.setItem('sitename', '菜鸟教程bbbbbbbbbbbbbbbbbbbbbbb')
    // localStorage.setItem('num', 444444444)
    // console.log(typeof localStorage.getItem('num'))
    // localStorage.setItem(
    //   'obj',
    //   JSON.stringify([
    //     { name: '菜鸟教程', url: 'www.runoob.com' },
    //     { name: '菜鸟教程1', url: 'www.runoob.com11' },
    //   ])
    // )
    // console.log(JSON.parse(localStorage.getItem('obj')))

    // sessionStorage.setItem(
    //   'obj',
    //   JSON.stringify([
    //     { name: '菜鸟教程', url: 'www.runoob.com' },
    //     { name: '菜鸟教程1', url: 'www.runoob.com11' },
    //   ])
    // )
    // console.log(JSON.parse(sessionStorage.getItem('obj')))
    // var data = JSON.parse(sessionStorage.getItem('obj'))
  </script>
</html>
